package com.kajespero.webapp.validator.impl;

import org.springframework.validation.Errors;

import com.kajespero.model.ArticleBean;
import com.kajespero.model.PageBean;
import com.kajespero.webapp.validator.commons.IValidator;

public class PageValidator implements IValidator<ArticleBean>{

	@Override
	public boolean supports(Class<?> clazz) {
		return PageBean.class.getName().equals(clazz.getName());
	}

	@Override
	public void validate(Object target, Errors errors) {
		// 
	}

	@Override
	public boolean valid(ArticleBean instance) {
		return true;
	}

}
